package schoolDemo3;

import java.util.Scanner;

public class Grade {

    public static void main(String[] args) {
        int value;
        char grade;
        System.out.println("请输入学生成绩：");
        Scanner reader=new Scanner(System.in);
        value= reader.nextInt();
        if (value>=90)
            grade='A';
        else if(value>=80)
            grade='B';
        else if(value>=70)
            grade='C';
        else if(value>=60)
            grade='D';
        else
            grade='E';
        System.out.println("评定成绩为："+grade);

    }
}
